package com.neuedu.part07;

public class Student {
	private int xueHao;
	private String name;
	private String sex;
	private int age;
	private double qz;
	private double qm;
	
	
	public Student() {
		
	}

	public Student(int xueHao, String name,String sex, int age,double qz, double qm) {
		this.xueHao = xueHao;
		this.name = name;
		this.sex = sex;
		this.age = age;
		this.qz = qz;
		this.qm = qm;
		
		
	}
	

	public Student(double qz, double qm) {
		this.qz = qz;
		this.qm = qm;
	}

	public int getXueHao() {
		return xueHao;
	}

	public void setXueHao(int xueHao) {
		this.xueHao = xueHao;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}
	
	public double getQz() {
		return qz;
	}

	public void setQz(int qz) {
		this.qz = qz;
	}

	public double getQm() {
		return qm;
	}

	public void setQm(int qm) {
		this.qm = qm;
	}

	public double allResults() {
		return this.qz*0.5*qm*0.5;
	}
	
	

}
